package com.tz.crm.entity.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by wangchunyang on 2017/3/7.
 * 付款的封装
 */
public class Payment {

    @NotBlank(message = "{payPlan.can.not.be.blank}")
    String payName;//费用名称
    @Pattern(regexp = "[0-9]{1,14}(\\.{0,1}[0-9]{1,2})?", message = "{payAmount.can.not.be.blank}")
    String amount;//金额
    @NotBlank(message = "{dueDate.can.not.be.blank}")
    String dueDate;//计划到款日期
    String remark;//备注

    public Payment() {

    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getDueDate() {
        return dueDate;
    }

    public void setDueDate(String dueDate) {
        this.dueDate = dueDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Payment{" +
                "payName='" + payName + '\'' +
                ", amount='" + amount + '\'' +
                ", dueDate='" + dueDate + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
